package cn.iocoder.yudao.module.system.wechat_card.dto.general_card;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
public class GeneralCardUseDTO implements Serializable {

    @Schema(description = "卡券Code码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "卡券Code码不能为空")
    private String code;

    @Schema(description = "卡券ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "卡券ID不能为空")
    private String card_id;

    @Schema(description = "支持商家激活时针对单个礼品卡分配自定义的礼品卡背景", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String background_pic_url;

    @Schema(description = "需要设置的余额全量值，传入的数值会直接显示", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String balance;

    @Schema(description = "商家自定义金额消耗记录，不超过14个汉字", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String record_balance;

    @Schema(description = "创建时字段custom_field1定义类型的最新数值，限制为4个汉字，12字节", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String custom_field_value1;

    @Schema(description = "控制本次积分变动后转赠入口是否出现", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Boolean can_give_friend;

}
